import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'

Vue.use(Vuex)



export default new Vuex.Store({
    state,
    //接收组件传过来的数据
    // actions:{
    //     changeCity(ctx,city){
    //         ctx.commit('cityChange',city)//通过commit调用mutations
    //     }
    // },
    mutations
    
})